package com.ruoyi.patrol.domain;

import com.ruoyi.common.core.domain.entity.SysRole;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 巡查线路对象 pt_line
 * 
 * @author lkm
 * @date 2022-11-07
 */
public class PtLine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 线路名称 */
    private String lineName;

    /** 线路类别：0、安保人员，1、行政人员 */
    private Integer lineType;

    private List<PtLineSite> lineSites;
    private List<PtSite> sites;

    /** 线路所属学校 */
    private Long schoolId;

    /** 线路关联巡逻点位个数 */
    private Integer siteCount;

    private PtSchool school;

    public PtSchool getSchool() {
        return school;
    }

    public void setSchool(PtSchool school) {
        this.school = school;
    }

    public Integer getSiteCount() {
        return siteCount;
    }

    public void setSiteCount(Integer siteCount) {
        this.siteCount = siteCount;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLineName(String lineName) 
    {
        this.lineName = lineName;
    }

    public String getLineName() 
    {
        return lineName;
    }
    public void setLineType(Integer lineType) 
    {
        this.lineType = lineType;
    }

    public Integer getLineType() 
    {
        return lineType;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }

    public List<PtLineSite> getLineSites() {
        return lineSites;
    }

    public void setLineSites(List<PtLineSite> lineSites) {
        this.lineSites = lineSites;
    }

    public List<PtSite> getSites() {
        return sites;
    }

    public void setSites(List<PtSite> sites) {
        this.sites = sites;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("lineName", getLineName())
            .append("lineType", getLineType())
            .append("schoolId", getSchoolId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
